package com.powernode.spring6.bean;

import java.util.Arrays;

public class Person {
    private String[] hobby;
    private Women[] womens;

    public void setHobby(String[] hobby) {
        this.hobby = hobby;
    }

    public void setWomens(Women[] womens) {
        this.womens = womens;
    }

    public Women[] getWomens() {
        return womens;
    }

    @Override
    public String toString() {
        return "Person{" +
                "hobby=" + Arrays.toString(hobby) +
                ", womens=" + Arrays.toString(womens) +
                '}';
    }
}
